package com.yf1706.dao.mybatis;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yf1706.bean.Emp;

@Mapper
public interface IEmpMDAO {
	public List<Emp> queryAllEmp();
	public List<Emp> queryBySearch(@Param("sort")String sort,@Param("order")String order,@Param("searchValue")String searchValue);


	//根据员工编号获取员工对象(基本表)
	public Emp queryBasicById(@Param("empId")int empId);
	//根据员工编号获取员工对象(基本关联表)
	public Emp queryById(@Param("empId")int empId);
	public List<Emp> queryBySearch(@Param("searchValue")String searchValue,
			@Param("beginDate")Date beginDate,@Param("endDate")Date endDate,@Param("showResign")boolean showResign);
	
}
